package com.haiyi.activiti.engine.framework.ruleengine.drools;

import com.haiyi.activiti.engine.framework.ruleengine.Stream;

import java.io.Serializable;
import java.util.Map;

/**
 * <p> </p>
 *
 * <pre> Created: 2018/11/29 15:25 </pre>
 *
 * @author hlu
 * @version 1.0
 * @since JDK 1.7
 */
public class DroolsStream implements Serializable, Stream {

    /**
     * 所有参数
     */
    private Map<String,Object> params;

    /**
     * 是否逻辑错误
     */
    private boolean isError;

    /**
     * 错误的提示消息体
     */
    private String errorMsg;

    /**
     * 表单的formKey
     */
    private String formId;

    /**
     * 返回输出的值
     */
    private String output;

    @Override
    public Map<String, Object> getParams() {
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    @Override
    public boolean isError() {
        return isError;
    }

    public void setError(boolean error) {
        isError = error;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    @Override
    public String getFormId() {
        return formId;
    }

    @Override
    public Object getOutput() {
        return output;
    }

    public void setOutput(String output) {
        this.output = output;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }
}
